//
//  UITableView+extension.m
//  Charge
//
//  Created by lxj on 2017/9/22.
//  Copyright © 2017年 lxj. All rights reserved.
//

#import "UITableView+extension.h"

@implementation UITableView (extension)



-(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style haveLine:(BOOL)haveLine{
    if (self = [self initWithFrame:frame style:style]) {
        if (!haveLine) {
            self.separatorStyle = UITableViewCellSeparatorStyleNone;
        }
        self.backgroundColor = KBackColor;
        self.estimatedSectionHeaderHeight = 0;
        self.estimatedSectionFooterHeight = 0;
        self.estimatedRowHeight = 0;
    }
    return self;
}

@end
